import { memberList } from '../../../request/api'
const state = {
    memberlist: []
}
const getters = {
    getMember(state) {
        return state.memberlist
    }
}
const mutations = {
    REQ_MEMBERLIST(state, payload) {
        state.memberlist = payload
    }
}
const actions = {
    getMemberAction({ commit }) {
        memberList().then((res) => {
            commit('REQ_MEMBERLIST', res.list)
        })
    }
}
export default {
    state,
    getters,
    mutations,
    actions,
    //命名空间
    namespaced: true,
}
